package com.rem.designPattern.flyweight享元;

/**
 * 外部状态，非共享角色
 *
 * @author Rem
 * @date 2022-11-18
 */
public class User {
    private String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

/**
 * 内部状态，共享角色
 */
enum Type {
    news,
    blog,
    weChat_official_account
}